import { Component, OnInit } from '@angular/core';
import { HitokotoService } from './service/hitokoto-service';
import { HitokotoVo } from './vo/hitokoto-vo';

@Component({
    selector: 'app-info-box',
    templateUrl: './info-box.component.html',
    styleUrls: ['./info-box.component.scss'],
    standalone: true
})
export class InfoBoxComponent implements OnInit {

  hitokoto: HitokotoVo;
  constructor(public hitokotoService: HitokotoService) {
  }

  ngOnInit(): void {
    this.hitokotoService.getHitokoto(['d', 'i']).subscribe(res=>{
      this.hitokoto = res;
    });
  }
}
